<?php
class Mwc_SystemPoint_Model_Mysql4_Log_Collection extends Varien_Data_Collection_Db{
    protected $_logTable;

    public function __construct(){
        $resources = Mage::getSingleton('core/resource');
        parent::__construct($resources->getConnection('systempoint_read'));
        $this->_logTable= $resources->getTableName('systempoint/log');

        $this->_select->from(
            array('log' => $this->_logTable),
            array('*')
        );

        $this->setItemObjectClass(Mage::getConfig()->getModelClassName('systempoint/log'));
    }
}